import getlink from "@/api/getapi.js"
let GuessM = {
    state:{
        guess:""
    },
    mutations:{
        UPGUESSDATA(state,payload){
            state.guess=payload
        }
    },
    actions:{
        LINK_GUESS_DATA(conguess,payload){
            // console.log(context)
            getlink(payload).then((ok)=>{
                console.log(ok.data.guess,"guess")
                conguess.commit("UPGUESSDATA",ok.data.guess)
            }).catch((err)=>{
                console.log(err)
            })
        }
    }
}

export default GuessM;
